import request from "@/utils/request";
import { unionApiUrl } from '@/api/config'
// 设计策划资料收集相关接口


/**
 * 列表
 */
export function getList(data) {
    return request({
        url: unionApiUrl + '/designPlanMaterial/getPageDesignPlanMaterial',
        method: 'post',
        data,
    })
}

/**
 * 统计
 */
 export function getTotal(data) {
    return request({
        url: unionApiUrl + '/designPlanMaterial/getDesignPlanMaterialTotal',
        method: 'post',
        data,
    })
}

/**
 * 新增
 */
 export function addData(data) {
    return request({
        url: unionApiUrl + '/designPlanMaterial/insertSelective',
        method: 'post',
        data,
    })
}

/**
 * 编辑
 */
 export function updateData(data) {
    return request({
        url: unionApiUrl + '/designPlanMaterial/updateByPrimaryKeySelective',
        method: 'post',
        data,
    })
}

/**
 * 删除
 */
 export function deleteData(params) {
    return request({
        url: unionApiUrl + '/designPlanMaterial/deleteByPrimaryKey',
        method: 'post',
        params,
    })
}


/**
 * 详情
 */
 export function getDetail(params) {
    return request({
        url: unionApiUrl + '/designPlanMaterial/getDesignPlanMaterialById',
        method: 'get',
        params,
    })
}